<?php
class Filter_Plugin_Menus
{
    public function onMenuInitialize_UserProfileManagefilter($row)
    {
      $viewer = Engine_Api::_()->user()->getViewer();
      $subject = Engine_Api::_()->core()->getSubject();

      if( $subject->authorization()->isAllowed($viewer, 'edit') ) {
        return array(
          'label' => 'Manage Filter',
          'icon' => 'application/modules/Filter/externals/images/links/manage.png',
          'route' => 'filter_general',
          'params' => array(
            'action' => 'manage'
          )
        );
      }

      return false;
    }
}